Release 10.1A: OpenEdge Development:
Programming Interfaces
Document and node reference objects
The
X-DOCUMENTis a Progress 4GL object that represents a DOM Document object. TheX-DOCUMENTobject is assigned to theHANDLEdata type and is used to manipulate the XML document and its tree representation.The
X-NODEREFobject is a Progress 4GL object that is a reference to any node in an XML tree except a Document node. TheX-NODEREFobject is assigned to theHANDLEdata type and is used to manipulate the DOM nodes. Note that anX-NODEREFobject is not an actual node in the XML tree but is more like a cursor which is used to navigate the tree and manipulate the nodes in it.Creating a document object
The creation and saving of a document is not part of the DOM Core API, but is left to the application that calls the API. You create an XML document using the
X-DOCUMENToption of theCREATEWidgetstatement:
This statement creates a handle for an object of the type
X-DOCUMENTthat “wraps” an XML document. You may start adding nodes to it or use theLOAD( )method to populate it from an existing XML document.Creating a node reference object
You create an XML node reference object using the
CREATEX-NODEREFstatement:
This statement creates a handle for an object which is not an actual node, but which is used as a reference or pointer to an actual node in the tree. The
X-NODEREFobject provides a path to access and manipulate the actual document nodes and can be used as a parameter or as a return-value for methods that will associate the handle with an XML node.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |